using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Abp.Domain.Entities;

namespace Precise.Products
{
	[Table("Products")]
    public class Product : AuditedEntity<long> , IMustHaveTenant
    {
			public int TenantId { get; set; }
			

		[Required]
		[StringLength(ProductConsts.MaxNameLength, MinimumLength = ProductConsts.MinNameLength)]
		public virtual string Name { get; set; }
		
		[Required]
		[StringLength(ProductConsts.MaxNumberLength, MinimumLength = ProductConsts.MinNumberLength)]
		public virtual string Number { get; set; }
		
		public virtual string Descritpion { get; set; }
		

    }
}